FROM lizhi1803001230/jdk:1.8.0_202

ARG zk_uid=bigdata02

COPY zookeeper-3.4.13 /opt/zookeeper-3.4.13
COPY entrypoint.sh /opt/entrypoint.sh
RUN ln -s /opt/zookeeper-3.4.13 /opt/zookeeper &&  useradd -ms /bin/bash ${zk_uid} 
ENV ZK_HOME=/opt/zookeeper
ENV PATH=$ZK_HOME/bin:$PATH


ENTRYPOINT [ "/opt/entrypoint.sh" ]

USER ${zk_uid}
